package com.wyw.design.model.learning.behavioral.observerpattern;

/**
 * @Title   读者类（订阅者）
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/18 16:45
 * Update History:
 * Author        Time            Content
 */
public class Reader implements IReader {
    private String name;
    public Reader(String name) {
        this.name = name;
    }
    @Override
    public void update(String bookName) {
        System.out.println(name + "-收到了图书：" + bookName);
    }
}
